import { BadRequestException, PipeTransform } from "@nestjs/common";
export class DefaultValuePipe implements PipeTransform<string> {
  constructor(private readonly defaultValue: any) {}
  transform(value: string) {
    return value !== undefined ? value : this.defaultValue;
  }
}
